package com.zjm.structural.facade;

public class Stereo {
    // 饿汉式单例模式
    private static final Stereo instance = new Stereo();

    private Stereo() {

    }

    public static Stereo getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("Stereo ON");
    }

    public void off() {
        System.out.println("Stereo OFF");
    }

    public void up() {
        System.out.println("Stereo UP");
    }
}
